package AS3 {
import zakladki.AS3.VehicleSelectedData;

public class Person {
    //								Mieszkanie
    private var I_cbHomeType:int = new int(0);
    private var I_cbHomeMat:int = new int(0);
    private var I_cbHomeInsulation:int = new int(0);
    private var I_eHomeArea:int = new int(0);
    private var I_eHomePersons:int = new int(0);
    private var I_cbHeatTemp:int = new int(0);
    private var I_cbHeatSource:int = new int(0);
    private var I_cbVentillationMethod:int = new int(0);
    private var I_seHeatRenew:int = new int(0);
    //							Ciepła woda, klimatyzacja
    private var I_seHotWatersBathsNo:int = new int(0);
    private var I_cbHotWatersBathsWaterQty:int = new int(0);
    private var I_seHotWatersShowersNo:int = new int(0);
    private var I_cbHotWatersHeatingSystem:int = new int(0);
    private var B_chbKlima:Boolean = new Boolean(true);
    private var I_cbKlimaUse:int = new int(0);
    private var I_cbKlimaWorkTime:int = new int(0);
    private var I_cbKlimaTemp:int = new int(0);


    private var vehiclesList:Array = new Array(new VehicleSelectedData(0, 0, 0, 0, 0, 0, 0), new VehicleSelectedData(0, 0, 0, 0, 0, 0, 0), new VehicleSelectedData(0, 0, 0, 0, 0, 0, 0));

    //							Transport publiczny
    private var I_CityBus:int = new int(0);
    //Autobus dalekobieżny
    private var I_LongDistanceBus:int = new int(0);
    //Mikrobus
    private var I_MiniBus:int = new int(0);
    //Tramwaj/Metro
    private var I_TramSubway:int = new int(0);
    //Pociąg podmiejski
    private var I_SuburbanTrain:int = new int(0);
    //Pociąg dalekobieżny
    private var I_LongDistanceTrain:int = new int(0);
    //Taxi
    private var I_Taxi:int = new int(0);
    private var I_cbClass:int = new int(0);
    private var I_eFlightShort:int = new int(0);
    private var I_eFlightLong:int = new int(0);
    //							Żywność
    private var I_cbFoodQuantity:int = new int(0);
    private var I_cbFoodOrigin:int = new int(0);
    private var I_cbFoodMeat:int = new int(0);
    private var I_cbFoodFrozen:int = new int(0);
    private var I_cbFridge:int = new int(0);
    private var I_cbCooker:int = new int(0);
    private var I_chbFreezer:Boolean = new Boolean(false);
    //							Inna konsumpcja
    private var I_cbRich:int = new int(0);
    private var I_cbFashion:int = new int(0);
    private var I_cbPackaging:int = new int(0);
    private var I_cbFurniture:int = new int(0);
    private var I_cbRecreation:int = new int(0);
    private var I_cbElectricity:int = new int(0);
    private var I_cbRecycling:int = new int(0);
    private var I_seElectrRenew:int = new int(0);

    private var I_chbLight:Boolean = new Boolean(false);
    private var I_chbWashingMachine:Boolean = new Boolean(false);
    private var I_chbDryer:Boolean = new Boolean(false);
    private var I_chbTVSet:Boolean = new Boolean(false);
    private var I_chbVideo:Boolean = new Boolean(false);
    private var I_chbCableTV:Boolean = new Boolean(false);
    private var I_chbComputer:Boolean = new Boolean(false);
    private var I_chbRadio:Boolean = new Boolean(false);
    //							Twoja emisja
    private var EmissionIndustry:Number = new Number(1);
    private var EmissionTransport:Number = new Number(1);

    private var imie:String = new String("");


    private var _score:int = 0;
    private var _correctAnswerCnt:int;
    private var _wrongAnswerCnt:int;

    public function Person(imie_uzytkownika:String) {
        this.imie = imie_uzytkownika;
    }

    public function setVehicleData(number:int, vehicleData:VehicleSelectedData):void {
        vehiclesList[number] = vehicleData;
    }

    public function getVehicleData(number:int):VehicleSelectedData {
        return vehiclesList[number];
    }

    public function getVehicleDataArray():Array {
        return vehiclesList;
    }

    public function get houseType():int {
        return I_cbHomeType;
    }

    public function set houseType(setValue:int):void {
        I_cbHomeType = setValue;
    }

    public function get buildingMaterial():int {
        return I_cbHomeMat;
    }

    public function set buildingMaterial(setValue:int):void {
        I_cbHomeMat = setValue;
    }

    public function get insulation():int {
        return I_cbHomeInsulation;
    }

    public function set insulation(setValue:int):void {
        I_cbHomeInsulation = setValue;
    }

    public function get livingArea():int {
        return I_eHomeArea;
    }

    public function set livingArea(setValue:int):void {
        I_eHomeArea = setValue;
    }

    public function get personNumber():int {
        return I_eHomePersons;
    }

    public function set personNumber(setValue:int):void {
        I_eHomePersons = setValue;
    }

    public function get heatingTemperature():int {
        return I_cbHeatTemp;
    }

    public function set heatingTemperature(setValue:int):void {
        I_cbHeatTemp = setValue;
    }

    public function get heatingSource():int {
        return I_cbHeatSource;
    }

    public function set heatingSource(setValue:int):void {
        I_cbHeatSource = setValue;
    }

    public function get ventilationMethod():int {
        return I_cbVentillationMethod;
    }

    public function set ventilationMethod(setValue:int):void {
        I_cbVentillationMethod = setValue;
    }

    public function get heatingRenewableRatio():int {
        return I_seHeatRenew;
    }

    public function set heatingRenewableRatio(setValue:int):void {
        I_seHeatRenew = setValue;
    }

    //*******************************************************************************
    //						Ciepła woda, klimatyzacja
    //*******************************************************************************
    public function get waterBathVolume():int {
        return I_cbHotWatersBathsWaterQty;
    }

    public function set waterBathVolume(setValue:int):void {
        I_cbHotWatersBathsWaterQty = setValue;
    }

    public function get bathNumber():int {
        return I_seHotWatersBathsNo;
    }

    public function set bathNumber(setValue:int):void {
        I_seHotWatersBathsNo = setValue;
    }

    public function get showerNumber():int {
        return I_seHotWatersShowersNo;
    }

    public function set showerNumber(setValue:int):void {
        I_seHotWatersShowersNo = setValue;
    }

    public function get waterHeatingSystem():int {
        return I_cbHotWatersHeatingSystem;
    }

    public function set waterHeatingSystem(setValue:int):void {
        I_cbHotWatersHeatingSystem = setValue;
    }

    public function get acEnabled():Boolean {
        return B_chbKlima;
    }

    public function set acEnabled(setValue:Boolean):void {
        B_chbKlima = setValue;
    }

    public function get acFrequency():int {
        return I_cbKlimaUse;
    }

    public function set acFrequency(setValue:int):void {
        I_cbKlimaUse = setValue;
    }

    public function get acDuration():int {
        return I_cbKlimaWorkTime;
    }

    public function set acDuration(setValue:int):void {
        I_cbKlimaWorkTime = setValue;
    }

    public function get acTemp():int {
        return I_cbKlimaTemp;
    }

    public function set acTemp(setValue:int):void {
        I_cbKlimaTemp = setValue;
    }

    //*******************************************************************************
    //						Transport publiczny
    //*******************************************************************************

    public function get cityBus():int {
        return I_CityBus;
    }

    public function set cityBus(setValue:int):void {
        I_CityBus = setValue;
    }

    public function get longDistanceBus():int {
        return I_LongDistanceBus;
    }

    public function set longDistanceBus(setValue:int):void {
        I_LongDistanceBus = setValue;
    }

    public function get miniBus():int {
        return I_MiniBus;
    }

    public function set miniBus(setValue:int):void {
        I_MiniBus = setValue;
    }

    public function get tramSubway():int {
        return I_TramSubway;
    }

    public function set tramSubway(setValue:int):void {
        I_TramSubway = setValue;
    }

    public function get suburbanTrain():int {
        return I_SuburbanTrain;
    }

    public function set suburbanTrain(setValue:int):void {
        I_SuburbanTrain = setValue;
    }

    public function get longDistanceTrain():int {
        return I_LongDistanceTrain;
    }

    public function set longDistanceTrain(setValue:int):void {
        I_LongDistanceTrain = setValue;
    }

    public function get taxi():int {
        return I_Taxi;
    }

    public function set taxi(setValue:int):void {
        I_Taxi = setValue;
    }

    public function get flightClass():int {
        return I_cbClass;
    }

    public function set flightClass(setValue:int):void {
        I_cbClass = setValue;
    }

    public function get shortDistanceFlights():int {
        return I_eFlightShort;
    }

    public function set shortDistanceFlights(setValue:int):void {
        I_eFlightShort = setValue;
    }

    public function get longDistanceFlights():int {
        return I_eFlightLong;
    }

    public function set longDistanceFlights(setValue:int):void {
        I_eFlightLong = setValue;
    }

    //*******************************************************************************
    //						Żywność
    //*******************************************************************************

    public function get foodAmount():int {
        return I_cbFoodQuantity;
    }

    public function set foodAmount(setValue:int):void {
        I_cbFoodQuantity = setValue;
    }

    public function get foodOrigin():int {
        return I_cbFoodOrigin;
    }

    public function set foodOrigin(setValue:int):void {
        I_cbFoodOrigin = setValue;
    }

    public function get meatConsumption():int {
        return I_cbFoodMeat;
    }

    public function set meatConsumption(setValue:int):void {
        I_cbFoodMeat = setValue;
    }

    public function get frozenFood():int {
        return I_cbFoodFrozen;
    }

    public function set frozenFood(setValue:int):void {
        I_cbFoodFrozen = setValue;
    }

    public function get fridgeType():int {
        return I_cbFridge;
    }

    public function set fridgeType(setValue:int):void {
        I_cbFridge = setValue;
    }

    public function get washingMachineSelected():Boolean {
        return I_chbWashingMachine;
    }

    public function set washingMachineSelected(setValue:Boolean):void {
        I_chbWashingMachine = setValue;
    }

    public function get washingMachine():Boolean {
        return I_chbWashingMachine;
    }

    public function set washingMachine(setValue:Boolean):void {
        I_chbWashingMachine = setValue;
    }

    public function get cookerType():int {
        return I_cbCooker;
    }

    public function set cookerType(setValue:int):void {
        I_cbCooker = setValue;
    }

    public function get separateFridge():Boolean {
        return I_chbFreezer;
    }

    public function set separateFridge(setValue:Boolean):void {
        I_chbFreezer = setValue;
    }

    //*******************************************************************************
    //						Inna konsumpcja
    //*******************************************************************************
    public function get income():int {
        return I_cbRich;
    }

    public function set income(setValue:int):void {
        I_cbRich = setValue;
    }

    public function get clothes():int {
        return I_cbFashion;
    }

    public function set clothes(setValue:int):void {
        I_cbFashion = setValue;
    }

    public function get packaging():int {
        return I_cbPackaging;
    }

    public function set packaging(setValue:int):void {
        I_cbPackaging = setValue;
    }

    public function get furnitureElectronics():int {
        return I_cbFurniture;
    }

    public function set furnitureElectronics(setValue:int):void {
        I_cbFurniture = setValue;
    }

    public function get recreation():int {
        return I_cbRecreation;
    }

    public function set recreation(setValue:int):void {
        I_cbRecreation = setValue;
    }

    public function get electricity():int {
        return I_cbElectricity;
    }

    public function set electricity(setValue:int):void {
        I_cbElectricity = setValue;
    }

    public function get recycling():int {
        return I_cbRecycling;
    }

    public function set recycling(setValue:int):void {
        I_cbRecycling = setValue;
    }

    public function get renewableRatio():int {
        return I_seElectrRenew;
    }

    public function set renewableRatio(setValue:int):void {
        I_seElectrRenew = setValue;
    }

    public function get lighting():Boolean {
        return I_chbLight;
    }

    public function set lighting(setValue:Boolean):void {
        I_chbLight = setValue;
    }

    public function get underwearDryer():Boolean {
        return I_chbDryer;
    }

    public function set underwearDryer(setValue:Boolean):void {
        I_chbDryer = setValue;
    }

    public function get tv():Boolean {
        return I_chbTVSet;
    }

    public function set tv(setValue:Boolean):void {
        I_chbTVSet = setValue;
    }

    public function get videoDVD():Boolean {
        return I_chbVideo;
    }

    public function set videoDVD(setValue:Boolean):void {
        I_chbVideo = setValue;
    }

    public function get cableTV():Boolean {
        return I_chbCableTV;
    }

    public function set cableTV(setValue:Boolean):void {
        I_chbCableTV = setValue;
    }

    public function get computer():Boolean {
        return I_chbComputer;
    }

    public function set computer(setValue:Boolean):void {
        I_chbComputer = setValue;
    }

    public function get radioHiFi():Boolean {
        return I_chbRadio;
    }

    public function set radioHiFi(setValue:Boolean):void {
        I_chbRadio = setValue;
    }

    //*******************************************************************************
    //						Emission
    //*******************************************************************************

    public function get industrialEmissionReduction():Number {
        return EmissionIndustry;
    }

    public function set industrialEmissionReduction(setValue:Number):void {
        EmissionIndustry = setValue;
    }

    public function get transportEmissionReduction():Number {
        return EmissionTransport;
    }

    public function set transportEmissionReduction(setValue:Number):void {
        EmissionTransport = setValue;
    }


    public function get score():int {
        return _score;
    }

    public function set score(value:int):void {
        _score = value;
    }


    public function get correctAnswerCnt():int {
        return _correctAnswerCnt;
    }

    public function set correctAnswerCnt(value:int):void {
        _correctAnswerCnt = value;
    }

    public function get wrongAnswerCnt():int {
        return _wrongAnswerCnt;
    }

    public function set wrongAnswerCnt(value:int):void {
        _wrongAnswerCnt = value;
    }

    public function getTotalAnswerCnt():int {
        return _correctAnswerCnt + _wrongAnswerCnt;
    }
}
}